package dom4j;

import org.dom4j.DocumentHelper;
import org.dom4j.Element;

public class CreateElementTest {

	public static void main(String[] args) {
		
		Element root = DocumentHelper.createElement("xml");
		for(char i = 'a'; i < 'd'; i++){
			
			Element sub = root.addElement(i + "");
			sub.setText("text:" + i);
		}
		System.out.println(root.asXML());
	}
}
